<table cellpadding="0" cellspacing="0">
  <tr>
    <td class="left_bg">&nbsp;</td>
    <td class="right_bg">
    
    <?php 
    if(isset($curUser))
    {	
	//debug(count($role_id));
	//debug($cur_id);
	//echo $ho_ten;
		if ($curUser['User']['group_id'] == '1'){
         echo "Chào ".$ho_ten." | " .$this->Html->link('Thoát!', array('controller' =>'users','action' =>'logout'));
		 }
		else{
         echo "Chào ".$ho_ten." | " .$this->Html->link('Thoát!', array('controller' =>'users','action' =>'logout'));
		 }
    }
    else
    {
         echo $html->link('Đăng nhập',
    			array('controller' =>'users','action' => 'login'),
    			array('title'   => 'Đăng nhập',
    				'onclick' => "Modalbox.show(this.href, {title: this.title, width: 375}); return false;"));
    }   
    ?>
     &nbsp;&nbsp;</td>
  </tr>
</table>